// 此处用于登录页面所有相关的请求
import request from '@/utils/request'

// 图形验证码获取
export const getpicCode = () => {
  return request.get('/captcha/image', { headers: { platform: 'H5' } })
}
// 获取短信验证码
export const getMsgCode = (captchaCode, captchaKey, mobile) => {
  return request.post('/captcha/sendSmsCaptcha', {

    form: {
      captchaCode,
      captchaKey,
      mobile
    }

  })
}
//  登录接口
export const codeLogin = (mobile, smsCode) => {
  return request.post('/passport/login', {
    form: {
      isParty: false,
      partyData: {},
      mobile,
      smsCode
    }
  })
}
